package com.lin.manager.controller.login;

import com.lin.manager.common.resp.R;
import com.lin.manager.login.service.SysCodeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @作者: 林江
 * @创建时间: 2024/3/15
 * @功能:
 */
@Slf4j
@Api(tags = "验证码管理")
@RestController
public class SysCodeController {
    @Resource
    SysCodeService codeService;

    @ApiOperation("获取验证码")
    @GetMapping("/getVerfyCode")
    @ResponseBody
    public R getVerfyCode() {
        return R.ok(codeService.getVerfyCode());
    }
}
